package com.sqznkj.Service;

import com.sqznkj.Dao.comIntroDao;
import com.sqznkj.entity.comIntro;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class comIntroService {
    @Resource
    comIntroDao dao;
    @Transactional
    public int add(comIntro comIntro) {
        return dao.add(comIntro);
    }
    @Transactional
    public int update(comIntro comIntro) {
        return dao.update(comIntro);
    }

    public comIntro getIntro() {
        return dao.getComIntro();
    }
}
